﻿<div style="padding: 4px; border: 1px dotted #808080">
    <div style="height: 200px; border: 1px #eee dashed;" id="coverImageEl" class="column">
        <img ms-if="post.FirstPicture!=null" class="cover" 
            style="max-width:200px;"
            ms-attr-src="/image?path={{post.FirstPicture}}&w=200" />
    </div>
    <div class="am-form-group " style="margin-top: 5px; height: 20px;">
        <div class="am-u-sm-7 am-form-file" style="padding: 0;">
            <button type="button" class="am-btn am-btn-danger am-btn-sm">
               选择封面图片
            </button>
            <input id="coverEl" value="选择封面" type="file" onchange="uploadFile(this)" />
        </div>
        <div class="am-u-sm-5 am-text-right" style="padding: 0;">
            <a href="javascript:;"
                ms-click="edit_first_picture()"
                class="am-btn am-btn-danger am-btn-sm">
                编辑封面
            </a>
        </div>
    </div>
</div>
